@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.tabbrowser-tabs {
  -moz-binding:url("chrome://StrataBuddy/content/StrataBuddy-mainmenu.xml#tabbrowser-tabs") !important;
}

/* ::::: app button ::::: */

/* button style */
#StrataBuddy-mainmenu {
  list-style-image: url("chrome://StrataBuddy/skin/images/firefox-button.png");
  -moz-image-region: rect(0 77px 21px 0);
  -moz-appearance: none;
  -moz-border-image: none;
  padding: 0;
  border: 0;
  margin-top: -3px;
  margin-bottom: 0;
  margin-left: -3px;
  margin-right: -3px;
}

#StrataBuddy-mainmenu:hover {
  -moz-image-region: rect(21px 77px 42px 0);
}

#StrataBuddy-mainmenu[open="true"] {
  -moz-image-region: rect(42px 77px 63px 0);
}

/* popup menu */
#StrataBuddy-mainmenu > menupopup {
  margin-top: -1px;
  -moz-margin-start: 0;
  -moz-appearance: none;
  -moz-window-shadow: none;
  background-color: transparent;
  -moz-border-image: url("chrome://StrataBuddy/skin/images/filemenu.png") 1 9 9 1 / 1px 9px 9px 1px;
}

#StrataBuddy-mainmenu #OptionsRightPane {
  border-left: 2px rgba(102,106,111,0.1) solid;
}

#RightPane-History,
#StrataBuddy-mainmenu #history-items {
  list-style-image: url("chrome://browser/skin/Bookmarks-folder.png") !important;
  -moz-image-region: auto;
}

#StrataBuddy-mainmenu #RightPane {
  -moz-appearance: none;
  border: 0;
}

#StrataBuddy-mainmenu #title {
  padding-bottom: 3px;
  -moz-appearance: none !important;
  background: none;
  border: 0;
  border-bottom: 2px solid;
  -moz-border-bottom-colors: white rgba(0,0,0,0.3);
}

#StrataBuddy-mainmenu #LeftPane {
  margin-right: -3px;
  background-color: rgba(255,255,255,0.5);
  border-right: 1px solid rgba(0,0,0,0.3) !important;
}

#RightPane-History > stack {
  margin-top: 6px !important;
}

#StrataBuddy-mainmenu .menu-seperator {
  color: #ebedf0;
}

/* bookmarks button */
#StrataBuddy-bookmark-button > .toolbarbutton-icon {
  width: 45px;
  height: 30px;
}

#StrataBuddy-bookmark-button {
  -moz-appearance: none;
  -moz-border-image: none;
  list-style-image: url("chrome://StrataBuddy/skin/images/bookmarks-button.png");
  -moz-image-region: rect(0 45px 30px 0);
  border: none;
  padding: 0;
  -moz-margin-start: 0;
  -moz-margin-end: -5px;
}

#StrataBuddy-bookmark-button:not([open="true"]):hover {
  -moz-image-region: rect(30px 45px 60px 0);
}

#StrataBuddy-bookmark-button[open="true"],
#StrataBuddy-bookmark-button:hover:active {
  -moz-image-region: rect(60px 45px 90px 0);
}

/* bookmark button text mode */

toolbar[mode="text"] #StrataBuddy-bookmark-button {
  -moz-border-image: url("chrome://browser/skin/text-button-default.png") 3 7 6 7 / 3px 7px 6px 7px !important;
  -moz-box-orient: horizontal !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 30px !important;
  min-height: 30px !important;
}

toolbar[mode="text"] #StrataBuddy-bookmark-button > label {
  display: -moz-box !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

toolbar[mode="text"] #StrataBuddy-bookmark-button:not([disabled="true"]):hover {
  -moz-border-image: url("chrome://browser/skin/text-button-hover.png") 3 7 6 7 / 3px 7px 6px 7px !important;
}

toolbar[mode="text"] #StrataBuddy-bookmark-button:hover:active,
toolbar[mode="text"] #StrataBuddy-bookmark-button[open="true"] {
  -moz-border-image: url("chrome://browser/skin/text-button-active.png") 3 7 6 7 / 3px 7px 6px 7px !important;
}

/* bookmark button in personal toolbar */

#PersonalToolbar > #StrataBuddy-bookmark-button > label {
  display: -moz-box;
}

#PersonalToolbar > #StrataBuddy-bookmark-button {
  list-style-image: url("chrome://StrataBuddy/skin/images/bookmarks-item.png") !important;
  -moz-image-region: auto !important;
  -moz-margin-end: 3px !important;
}

#PersonalToolbar >  #StrataBuddy-bookmark-button > .toolbarbutton-icon {
  max-height: 16px !important;
  max-width: 16px !important;
}

#StrataBuddy-support-button {
  list-style-image: url("chrome://StrataBuddy/skin/images/help-button.png");
  -moz-appearance: none;
  border: none;
}

#StrataBuddy-support-button:hover:active {
  margin-top: -2px;
}

/* home tab */

#StrataBuddy-hometab {
  -moz-appearance: none;
  list-style-image: url("chrome://StrataBuddy/skin/images/home-tab.png");
  -moz-border-image: url("chrome://browser/skin/tabbrowser/tab-default.png") 5 6 2 6 / 5px 6px 2px 6px;
  margin: 0 -3px 0 0 !important;
  padding: 0 3px 0 3px;
  max-height: 23px;
}

#StrataBuddy-hometab:hover {
}

#StrataBuddy-hometab > .toolbarbutton-icon {
  margin: 0 0 2px 0;
  padding: 0;
}

/* hide a few things.. */

#StrataBuddy-mainmenu .toolbarbutton-menu-dropmarker,
#StrataBuddy-mainmenu .toolbarbutton-text,
#StrataBuddy-hometab .toolbarbutton-text,
#StrataBuddy-bookmark-button > dropmarker,
.uctb-tab-button, 
#StrataBuddy-bookmark-button > dropmarker,
#StrataBuddy-bookmark-button .toolbarbutton-menu-dropmarker,
toolbar:not([mode="text"]) #stratabuddy-bookmark-button > label,
#StrataBuddy-hometab,
#StrataBuddy-mainmenu #devmenu-seperator,
#StrataBuddy-mainmenu #dev-menu  {
  display: none;
}